/**
 * @project readnote
 * @Title BookDAOImpl.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.user.dao.impl;

import com.cr.backbone.hibenate.AppBaseDAOImpl;
import com.readnote.user.dao.UserDAO;
import com.readnote.user.model.User;

public class UserDAOImpl extends AppBaseDAOImpl<User> implements UserDAO  {

	/**
	 * 根据用户名查询用户
	 * @param name
	 * @return
	 * @author huxh
	 * @date 2012-02-14
	 */
	public User getUserByLoginName(String name){
		String hql="FROM User u WHERE u.loginName = ?";
		Object[] values={name};
		return getByHql(hql,values );
	}
	
}
